package elijah.base;

import android.app.Application;
import android.content.Context;

import androidx.core.content.FileProvider;

import elijah.base.thread.ScheduledProvider;

public class BaseProvider extends FileProvider {

    @Override
    public boolean onCreate() {
        Context context = getContext().getApplicationContext();
        AppBase.get().init(context);
        if (context instanceof Application) {
            ((Application) context).registerActivityLifecycleCallbacks(ScheduledProvider.instance());
        }
        return true;
    }
}